home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / gopher / globals.h.z / globals.h
C/C++ Source or Header  |  1997-09-09  |  3KB  |  109 lines

  1. /********************************************************************
  2.  * $Author: drich $
  3.  * $Revision: 1.1 $
  4.  * $Date: 1995/10/03 04:08:03 $
  5.  * $Source: /proj/freeware1.0/gopher1.12/src/gopher/RCS/globals.h,v $
  6.  * $State: Exp $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: globals.h
  14.  * Global variables and #defines
  15.  *********************************************************************
  16.  * Revision History:
  17.  * $Log: globals.h,v $
  18.  * Revision 1.1  1995/10/03  04:08:03  drich
  19.  * gopher 1.2 check-in
  20.  *
  21.  * Revision 1.3  1993/01/08  19:44:21  lindner
  22.  * Updated version number
  23.  *
  24.  * Revision 1.2  1992/12/31  04:04:51  lindner
  25.  * Changes for VMS
  26.  *
  27.  * Revision 1.1  1992/12/10  23:32:16  lindner
  28.  * gopher 1.1 release
  29.  *
  30.  *********************************************************************/
  31.  
  32. #define MAXRESP      9                  /* Max size of a response list*/
  33. #define WHOLELINE 80                   /* Used in ourutil.c */
  34.  
  35. /*
  36.  * These are some funky defines that assures that global variables are
  37.  * declared only once.  (when globals.c includes this file with EXTERN
  38.  * defined.
  39.  */
  40.  
  41. #ifndef EXTERN
  42. #define EXTERN extern
  43. #define INIT(x)
  44. #else
  45. #define EXTERN
  46. #define INIT(x) =(x)
  47. #endif
  48.  
  49. /*
  50.  * We keep the version line stored here for easy access
  51.  */
  52. EXTERN char    *VERSIONline INIT("Internet Gopher Information Client v1.11");
  53.  
  54. /*** Global variables ***/
  55. EXTERN String    *PrinterCommand; /*used for configuration options */
  56. EXTERN String    *PagerCommand;   
  57. EXTERN String    *TelnetCommand;  
  58. EXTERN String    *MailCommand;
  59. EXTERN String    *PlayCommand;
  60. EXTERN String    *EditorCommand;
  61. EXTERN String    *TN3270Command;
  62. EXTERN String    *MIMECommand;
  63. EXTERN String    *ImageCommand;
  64.  
  65. EXTERN boolean   ChangedDefs INIT(FALSE);
  66.  
  67. EXTERN char      *Searchstring INIT(NULL);
  68. EXTERN int       iLevel INIT(0);
  69. EXTERN BOOLEAN   SecureMode INIT(FALSE);
  70. EXTERN BOOLEAN   DEBUG INIT(FALSE);
  71.  
  72. EXTERN GopherDirObj *CurrentDir INIT(NULL);
  73. EXTERN GopherDirObj *OldDirs[30];  /** Should be a stack... **/
  74.  
  75. EXTERN GopherDirObj *BookmarkDir INIT(NULL);
  76.  
  77. EXTERN char      USERCAP[WHOLELINE];    /* The validated user capability */
  78. EXTERN int       SOUNDCHILD INIT(0);     /* The pid of the sound player child. */
  79. EXTERN CursesObj *CursesScreen;
  80.  
  81. EXTERN char *Gopenfile INIT(NULL);
  82.  
  83. #ifndef VMS
  84. extern int errno;
  85. #endif
  86.  
  87. /*** Externals ***/
  88.  
  89. #ifndef VMS
  90. extern char **environ;                  /* User environment array */
  91. extern char *sys_errlist[];
  92. #endif
  93.  
  94. /*** Prototypes and forward declarations ***/
  95.  
  96. /*** Ourutils.c ***/
  97. void display_file(/* char *Filename */);
  98. void ZapCRLF( /* char *buffer */ );
  99. int  outchar( /*char c*/ );        
  100. void CursesErrorMsg( /* char* */);
  101. void GetOneOption(/* char*, char* */);
  102.  
  103. int  process_request(/* ZeGopher*/);
  104. int  Load_Dir(/*ZeGopher*/);
  105. int  Load_Index();
  106. int  Load_Index_or_Dir();
  107. void GetOneOption(/* */);
  108. void check_sock(/* int, char* */);
  109.